package com.dongwu.manager.dto;

import com.dongwu.manager.entity.Product;
import com.fasterxml.jackson.annotation.JsonFormat;

import io.swagger.annotations.ApiModelProperty;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;

/**
 * 广告实体类
 * 
 * @author xyj
 *
 */
public class AdvertisingData {

	@ApiModelProperty(value = "ID")
	private String id; // ID

	@ApiModelProperty(value = "广告名称")
	private String adName; // 广告名称

	@ApiModelProperty(value = "商家名称")
	private String adBusinessName; // 商家名称

	@ApiModelProperty(value = "商家地址")
	private String adBusinessAddr; // 商家地址

	@ApiModelProperty(value = "广告单图")
	private String adImage; // 广告单图

	@ApiModelProperty(value = "广告视频地址")
	private String adVideo; // 广告视频地址

	@ApiModelProperty(value = "广告轮播图")
	private String adSlideImage; // 广告轮播图

	@ApiModelProperty(value = "二维码")
	private String adQrcode; // 二维码

	@ApiModelProperty(value = "访问路径")
	private String adUrl; // 访问路径

	@ApiModelProperty(value = "联系方式")
	private String adMobilePhone; // 联系方式

	@ApiModelProperty(value = "温馨提示")
	private String adRemark; // 温馨提示

	@ApiModelProperty(value = "优惠券开始时间")
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private Date adStartTime; // 优惠券开始时间

	@ApiModelProperty(value = "优惠券开始时间")
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private Date adEndTime; // 优惠券结束时间

	@ApiModelProperty(value = "详情")
	private String adIntroduction; // 详情

	@ApiModelProperty(value = "短网址")
	private String adSlink; // 短网址
	
	@ApiModelProperty(value = "关联广告分类")
	private String adsclassifyId; // 关联广告分类
	
	@ApiModelProperty(value = "关联模板布局位置")
	private String code; // 关联模板布局位置
	
	@ApiModelProperty(value = "关联商品")
	private Product product; // 关联商品
	
	@ApiModelProperty(value = "广告跳转类型  0图片，1视频，2分类，3，商品4，优惠券")
	private Integer adsType; //0图片，1视频，2分类，3，广告 4，优惠券


	public String getCode() {
		return code;
	}

	public String getAdsclassifyId() {
		return adsclassifyId;
	}
	
	public Integer getAdsType() {
		return adsType;
	}

	public void setAdsType(Integer adsType) {
		this.adsType = adsType;
	}

	public void setAdsclassifyId(String adsclassifyId) {
		this.adsclassifyId = adsclassifyId;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public Product getProduct() {
		return product;
	}

	public void setProduct(Product product) {
		this.product = product;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getAdName() {
		return adName;
	}

	public void setAdName(String adName) {
		this.adName = adName;
	}

	public String getAdBusinessName() {
		return adBusinessName;
	}

	public void setAdBusinessName(String adBusinessName) {
		this.adBusinessName = adBusinessName;
	}

	public String getAdBusinessAddr() {
		return adBusinessAddr;
	}

	public void setAdBusinessAddr(String adBusinessAddr) {
		this.adBusinessAddr = adBusinessAddr;
	}

	public String getAdImage() {
		return adImage;
	}

	public void setAdImage(String adImage) {
		this.adImage = adImage;
	}

	public String getAdVideo() {
		return adVideo;
	}

	public void setAdVideo(String adVideo) {
		this.adVideo = adVideo;
	}

	public String getAdSlideImage() {
		return adSlideImage;
	}

	public void setAdSlideImage(String adSlideImage) {
		this.adSlideImage = adSlideImage;
	}

	public String getAdQrcode() {
		return adQrcode;
	}

	public void setAdQrcode(String adQrcode) {
		this.adQrcode = adQrcode;
	}

	public String getAdUrl() {
		return adUrl;
	}

	public void setAdUrl(String adUrl) {
		this.adUrl = adUrl;
	}

	public String getAdMobilePhone() {
		return adMobilePhone;
	}

	public void setAdMobilePhone(String adMobilePhone) {
		this.adMobilePhone = adMobilePhone;
	}

	public String getAdRemark() {
		return adRemark;
	}

	public void setAdRemark(String adRemark) {
		this.adRemark = adRemark;
	}

	public Date getAdStartTime() {
		return adStartTime;
	}

	public void setAdStartTime(Date adStartTime) {
		this.adStartTime = adStartTime;
	}

	public Date getAdEndTime() {
		return adEndTime;
	}

	public void setAdEndTime(Date adEndTime) {
		this.adEndTime = adEndTime;
	}

	public String getAdIntroduction() {
		return adIntroduction;
	}

	public void setAdIntroduction(String adIntroduction) {
		this.adIntroduction = adIntroduction;
	}

	public String getAdSlink() {
		return adSlink;
	}

	public void setAdSlink(String adSlink) {
		this.adSlink = adSlink;
	}

	@Override
	public String toString() {
		return "AdvertisingData [id=" + id + ", adName=" + adName + ", adBusinessName=" + adBusinessName
				+ ", adBusinessAddr=" + adBusinessAddr + ", adImage=" + adImage + ", adVideo=" + adVideo
				+ ", adSlideImage=" + adSlideImage + ", adQrcode=" + adQrcode + ", adUrl=" + adUrl + ", adMobilePhone="
				+ adMobilePhone + ", adRemark=" + adRemark + ", adStartTime=" + adStartTime + ", adEndTime=" + adEndTime
				+ ", adIntroduction=" + adIntroduction + ", adSlink=" + adSlink + ", adsclassifyId=" + adsclassifyId
				+ ", code=" + code + ", product=" + product + "]";
	}


}